home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / INDENT3.ARJ / INDENT_C.H < prev    next >
Text File  |  1992-08-04  |  2KB  |  62 lines

  1. /* Copyright (c) 1980 Regents of the University of California. All rights
  2.  * reserved.  The Berkeley software License Agreement specifies the terms and
  3.  * conditions for redistribution. 
  4.  *
  5.  * @(#)indent_codes.h      5.2 (Berkeley) 8/28/85 */
  6.  
  7. /*-
  8.   
  9.                           Copyright (C) 1976
  10.                                 by the
  11.                           Board of Trustees
  12.                                 of the
  13.                         University of Illinois
  14.   
  15.                          All rights reserved
  16.   
  17. FILE NAME:
  18.         indent_codes.h
  19.   
  20. PURPOSE:
  21.         This include file contains defines for codes used within indent.  They
  22.         are here so that codes passed between and within routines can be
  23.         referenced symbolically.
  24.   
  25. GLOBALS:
  26.         No global variables, just a bunch of defines
  27.   
  28. FUNCTIONS:
  29.         None
  30. */
  31.  
  32. enum codes {
  33.     code_eof = 0,        /* end of file */
  34.     newline,
  35.     lparen,            /* '(' or '['.  Also '{' in an
  36.                  * initialization.  */
  37.     rparen,            /* ')' or ']'.  Also '}' in an
  38.                  * initialization.  */
  39.     unary_op, binary_op, postop,
  40.     question, casestmt, colon, semicolon, lbrace, rbrace,
  41.     ident,            /* string or char literal, identifier, number */
  42.     comma, comment, swstmt,
  43.     preesc,            /* '#'.  */
  44.     form_feed, decl,
  45.     sp_paren,            /* if, for, or while token */
  46.     sp_nparen, ifstmt, whilestmt,
  47.     forstmt, stmt, stmtl, elselit, dolit, dohead, ifhead,
  48.     elsehead, period
  49. };
  50.  
  51. enum rwcodes {
  52.     rw_none = 0,
  53.     rw_break,
  54.     rw_switch,
  55.     rw_case,
  56.     rw_struct_like,        /* struct, enum, union */
  57.     rw_decl,
  58.     rw_sp_paren,        /* if, while, for */
  59.     rw_sp_nparen,        /* do, else */
  60.     rw_sizeof
  61. };
  62.